<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">Ext.ns('Helper.HTML5');

<span id='Helper-HTML5-CanvasPixelArray'>/**
</span> * @class Helper.HTML5.CanvasPixelArray 这个一个Javascript数组，每一个像素用4个整数值表示，范围从0至255&lt;br /&gt;
 * 分别表示红（r）、绿（g）、蓝（b）和a值，以此类推。 &lt;br /&gt;
 * 获取红色像素索引值的公式为： &lt;br /&gt;
 * &lt;code&gt;r = ((y - 1)*(width * 4)) + ((x - 1) * 4)&lt;/code&gt;
 * 则绿色g = r + 1 &lt;br /&gt;
 * b = r + 2 &lt;br /&gt;
 * a = r + 3 &lt;br /&gt;
 */
Ext.extend(Helper.HTML5.CanvasPixelArray, Ext.emptyFn, {});
</pre>
</body>
</html>
